<%@page import="sdfi.lee.DAO.PlatDAO"%>
<%@page import="sdfi.lee.Entity.Platform"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="FCK" uri="http://java.fckeditor.net"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link rel="stylesheet" href="<c:url value='/css/adnews.css'></c:url>">
</head>
<body>
<%
	Integer id=Integer.valueOf(request.getParameter("platid"));
	Platform pf=new PlatDAO().getPlatbyId(id);
	request.setAttribute("pf",pf);
%>

<div class="contain">
	<form action="<c:url value='/platmf.action'></c:url>" method="post">
		<input type="hidden" name="id" value="${param.platid}">
		<div class="items">
			<strong>平台名称:</strong>
			<input class="text" type="text" name="platname" value="${requestScope.pf.platname}" >
		</div>
		<div class="items">
			<strong>收费形式：</strong><select name="plattollfmt">
						<option value="1"  <c:if test="{requestScope.pf.plattollfmt==1}">selected</c:if> >按月</option>
						<option value="2"  <c:if test="{requestScope.pf.plattollfmt==2}">selected</c:if> >按周</option>
						<option value="3"  <c:if test="{requestScope.pf.plattollfmt==3}">selected</c:if> >按日</option>
					</select>
		</div>
		<div class="items">
			<strong>收费金额：</strong><input class="text" type="text" name="plattoll" value="${requestScope.pf.plattoll }">
		</div>
		<div class="items">
			<strong>平台数量：</strong><input class="text" type="text" name="platcount" value="${requestScope.pf.platcount}">
		</div>
		<div class="items">
			<strong>平台简介：</strong><FCK:editor height="500px" instanceName="platdescribe" value="${requestScope.pf.platdescribe }"></FCK:editor>
		</div>
		<div class="items">
			<input type="submit" value="平台修改">
		</div>
	</form>
</div>
</body>
</html>